import React from 'react';
import Navigation from '../../Navigation';
import './index.scss';

class DisplayPage extends React.PureComponent {
  constructor(props) {
    super(props);

    this.navigation = [
      {
        name: '科普宣传',
        key: 'video',
      },
      {
        name: 'VR虚拟现实',
        key: 'vr',
      },
      {
        name: '监管动态',
        key: 'work',
      }
    ];
  }
  render() {
    return (
      <div className="content-wrapper" >
        <Navigation
          config={this.navigation}
          defaultKey={'work'}
        />
        <div className="main-container">
          {this.props.children}
        </div>
      </div>
    );
  }
}

export default DisplayPage;
